//多文档界面（multiple document interface，MDI）
//登录界面

#include "mainwindow.h"
#include <QtWidgets/QApplication>
#include "logindialog.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    LoginDialog* login = new LoginDialog;

    if (login->exec() == QDialog::Accepted)//登录成功则进入主窗口
    {
        MainWindow w;
        w.show();
        return a.exec();
    }
    else
        return 0;
}
